package com.xuecheng.content.service;

import com.xuecheng.content.model.dto.CoursePreviewDto;
import com.xuecheng.content.model.po.CoursePublish;

import java.io.File;

public interface CoursePublishService {

    //获取课程预览信息
    public CoursePreviewDto getCoursePreviewInfo(Long courseId);

    //提交审核
    public void commitAudit(Long companyId,Long courseId);

    //课程发布
    public void publish(Long companyId,Long courseId);

    //课程静态化
    public File generateCourseHtml(Long courseId);

    //上传静态资源到minio
    public void  uploadCourseHtml(Long courseId,File file);

    CoursePublish getCoursePublish(Long courseId);

    //从缓存中查询课程信息
    public CoursePublish getCoursePublishCache(Long courseId);
}
